﻿@model SelfMadeMillionaire.Web.Infrastructure.ViewModels.Home.PublicationNewsListViewModel
@using SelfMadeMillionaire.Web.Infrastructure.ViewModels.Home

<h5><a href="@Url.Action("Index", "Publications", new { selectedProduct = (int)Model.SelectedProduct })" style="color:white;">News &amp; Publications</a></h5>
@if (Model != null)
{		
	<ul>
		@foreach (MixedPublicationItemModel item in Model.MixedList )
		{
			<li>
                @if(item.IsPublication)
                {
                    <a href="@Url.Action("Details", "Publications", new { id = item.ID })">@item.Title</a>
                }
                else if (item.IsNews)
                {
                    <a href="@item.ExternalUrl" target="_blank" title="@item.Tooltip">@item.Title</a>
                }

			</li>
		}
	</ul>
}